package com.csxy.hxl.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("edu_course")
@Accessors(chain = true)
@Schema(description = "EduCourse对象")
public class EduCourse implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(description = "课程ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @Schema(description = "课程讲师ID")
    private String teacherId;
    @Schema(description = "课程专业ID")
    private String subjectId;
    @Schema(description = "课程专业父级ID")
    private String subjectParentId;
    @Schema(description = "课程标题")
    private String title;
    @Schema(description = "课程销售价格，设置为0则可免费观看")
    private Float price;
    @Schema(description = "总课时")
    private Integer lessonNum;
    @Schema(description = "课程封面图片路径")
    private String cover;
    @Schema(description = "销售数量")
    private Long buyCount;
    @Schema(description = "浏览数量")
    private Long viewCount;

    @Schema(description = "乐观锁")
    private Integer version;

    @Schema(description = "课程状态")
    private String status;
    @Schema(description = "逻辑删除")
    private Integer isDeleted;
    @Schema(description = "创建时间",example = "2021-07-05 09:05:05")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    @Schema(description = "更新时间",example = "2021-07-05 09:05:05")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
